package com.server.process.dao;

import com.server.domain.process.WorkFlow;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface WorkFlowDao extends JpaRepository<WorkFlow,String> , JpaSpecificationExecutor<WorkFlow> {
    /**
     * 对实体类WorkFlow的DAO层接口
     * 继承接口
     *      JpaRepository<实体类，主键>
     *      JpaSpecificationExecutor<实体类>
     */
    List<WorkFlow> findByCompanyId(String companyId);
}
